package ch04.d2;

public class Dog {
    //属性
    String name;
    int age;

    public Dog(){
        System.out.println("Dog的构造方法");
    }

    //方法
    public void sing() {
        System.out.println("汪汪汪");
    }


}
